//
//  BaseController.h
//  MoneyIndividual
//
//  Created by Le Anh Tai on 12/24/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BottomToolbar.h"

@class BadgeButton;
@interface BaseController : UIViewController<BottomToolbarDelegate>
{
    BottomToolbar *_bottomToolbar;
    
    UISwipeGestureRecognizer *_swipeGesture;
    BadgeButton *_badgeButton;
    UIBarButtonItem *_leftBarButton;
    UIBarButtonItem *_rightBarButton;
}

- (void)addBottomToolbarWithTitles:(NSString*)title, ...;

- (void)pushController:(BaseController*)controller animated:(BOOL)animated;

- (id)initAsRootOfNavigationController;
- (id)initAsSubController;

/**pop this view controller*/
- (void)swipeGestureHandle:(UISwipeGestureRecognizer*)sender;

- (void)setLeftButtonType:(BarButton)buttonType;
- (void)setRightButtonType:(BarButton)buttonType;
- (UIButton*)newButtonWithType:(BarButton)buttonType;

- (void)navigationButtonPressed:(BarButton)buttonType;

@end
